package tw.com.diray.comm.ui;

import tw.com.diary.ae.com.ExceptionUtils;
import tw.com.diary.ae.com.Msg;
import tw.com.diary.ae.com.MsgData;
import tw.com.dirary.comm.R;
import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

public class DirToast {

	


	public static void show(Context context, Msg msg, String messsage) {
		ToastFactory.instance(MessageToast.class).run(context, msg.getExCode(), messsage);
	}
	public static void show(Context context,Exception e) {
		final MsgData msgData = ExceptionUtils.make(e);
		ToastFactory.instance(MessageToast.class).run(context, msgData.getTitle(), msgData.getMessage());
	}
	

	
}
